<template>
  <div>
    <h1>app</h1>
  </div>
</template>

<script>
import axios from "axios";
/* 
vue-cli   webpack-dev-serve 这个服务器上  
http://localhost:3001/

http://localhost:3001

访问服务器 http://localhost:5000/yangyang  



*/
export default {
  mounted() {
    let url = "/api/yangyang";
    axios
      .get(url)
      .then((res) => {
        console.log(res);
      })
      .catch((err) => {
        console.log(err);
      });
  },
};
</script>

<style lang="scss" scoped>
</style>